{include file="./public/footer" /}
{include file="./public/menu" /}
<!--引入kindeditor编辑器-->
<script src="__STATIC__/Admin/kindeditor/kindeditor-all.js"></script>
<!--/sidebar-->
<div class="main-wrap">

    <div class="crumb-wrap">
        <div class="crumb-list"><i class="icon-font"></i><a href="/admin.php">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="/admin.php/strategy/lists">攻略管理</a><span class="crumb-step">&gt;</span><span>编辑攻略</span></div>
    </div>
    <div class="result-wrap">
        <div class="result-content">
            <form  id="andy_form"  name="myform" enctype="multipart/form-data">
                <table class="insert-tab" width="100%">
                    <tbody><tr>
                        <th width="120"><i class="require-red">*</i>所属分类：</th>
                        <td>
                            <select name="tid" id="type_id" class="required">
                                <option value="">请选择</option>
                                {volist name="class" id="c"}
                                    <option value="{$c.id}" {if ($news.tid eq $c.id)}selected{/if}>{$c.name}</option>
                                {/volist}
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th><i class="require-red">*</i>攻略标题：</th>
                        <td>
                            <input class="common-text required"  name="title" size="50"  type="text" value="{$news.title}">
                        </td>
                    </tr>


                    <tr>
                        <th>攻略详情：</th>
                        <td><textarea name="content" class="common-textarea" id="kindeditor_id" cols="30" style="width: 98%;" rows="10">{$news.content}</textarea></td>
                    </tr>

                    <tr>
                        <th><i class="require-red">*</i>攻略状态：</th>
                        <td>
                            &nbsp;<input type="radio"  value="1" size="85" name="status" class="common-text" {if ($news.status eq 1)}checked{/if}>正常&nbsp;&nbsp;&nbsp;&nbsp;
                            &nbsp;<input type="radio" value="0" name="status" size="85" class="commont-text" {if ($news.status eq 0)}checked{/if}>代审
                        </td>
                    </tr>

                    <input type="hidden" name="id" value="{$news.id}">
                    <tr>
                        <th></th>
                        <td>
                            <input class="btn btn-primary btn6 mr10" id="andy_button_submit" value="提交" type="button">
                            <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                        </td>
                    </tr>
                    </tbody></table>
            </form>
        </div>
    </div>

</div>
<!--/main-->
<script>
    KindEditor.ready(function(K) {
        window.editor = K.create('#kindeditor_id',{
            uploadJson : '/admin.php/image/kindUpload',
            afterBlur: function(){this.sync();}
        });
    });

    var SCOPE = {
        'save_url' : '/admin.php/news/add',
        'jump_url' : '/admin.php/news/lists',
    }


</script>
<script>
</script>
{include file="./public/bottom" /}